<script>
    initSideBar(2);
</script>

<!--<script src="__PUBLIC__/js/jquery/jquery-1.11.3.min.js"></script>-->
<script src="__PUBLIC__/lib/ueditor/ueditor.config.js"></script>
<script src="__PUBLIC__/lib/ueditor/ueditor.all.min.js"></script>
<script>
    var ue;
    $(function () {
        ue = UE.getEditor('container', {
            serverUrl: "{:U('Home/Index/server_ueditor')}"
        });

        ue.ready(function(){
            ue.setContent('hello');
        })
    })



    function btnShow(){
        conLog(ue.getContent());
    }

    function btnSet(){
        UE.getEditor('container').execCommand('insertHtml', '插入的内容');
    }
</script>
<!-- 加载编辑器的容器 -->
<script id="container" name="content" type="text/plain">
</script>

<a onclick="btnShow()" >获取内容</a>
<a onclick="btnSet()" >赋予内容</a>